package com.olinsports.system.olinsportssystem.manager;

import com.olinsports.system.olinsportssystem.model.SiteReservation;
import com.olinsports.system.olinsportssystem.model.SiteType;
import com.olinsports.system.olinsportssystem.service.SiteReservationService;
import com.olinsports.system.olinsportssystem.service.SiteTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2017/7/22.
 */
@Component
public class SiteReservationManager {
    @Autowired
    private SiteReservationService  siteReservationService;

    public List<SiteReservation> selectAll(){
        return siteReservationService.selectAll();
    }


    public List<SiteReservation> selectByScheduledDate(String scheduledDate){
        return siteReservationService.selectByScheduledDate(scheduledDate);
    }

    public int insertAll(SiteReservation siteReservation,String[] revTime,int plyKey){
        return siteReservationService.insertAll(siteReservation,revTime,plyKey);
    }


    public int updatePayData(SiteReservation siteReservation,int plyKey){
        return siteReservationService.updatePayData(siteReservation,plyKey);
    }

    public int unsubscribe(String scheduledDate,int plyKey,String vipNum,String state){
        return siteReservationService.unsubscribe(scheduledDate,plyKey,vipNum,state);
    }

    public int fixedSite(SiteReservation siteReservation, String[] revTime,int plyKey,String startFixedDate,String endFixedDate){
        return siteReservationService.fixedSite(siteReservation,revTime,plyKey,startFixedDate,endFixedDate);
    }

}
